package com.eas.biz.dao.statistic.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.eas.biz.dao.statistic.dataobject.ClassStatisticDO;
import com.eas.biz.dao.statistic.interfaces.ClassStatisticDao;
import com.eas.biz.framework.BaseQuery;
import com.eas.biz.framework.dao.GenericDaoImpl;

@Repository("classStatisticDao")
public class ClassStatisticDaoImpl extends GenericDaoImpl<ClassStatisticDO> implements
        ClassStatisticDao {

    public ClassStatisticDO selectById(long id) {
        return selectById("ClassStatistic.selectById", id);
    }

    public long insert(ClassStatisticDO object) {
        return insert("ClassStatistic.insert", object);
    }

    public int deleteById(long id) {
        return deleteById("ClassStatistic.deleteById", id);
    }

    public int update(ClassStatisticDO object) {
        return update("ClassStatistic.update", object);
    }

    public List<ClassStatisticDO> selectByQuery(BaseQuery query) {
        return selectByQuery("ClassStatistic.selectByQuery", query);
    }

    public int countByQuery(BaseQuery query) {
        return countByQuery("ClassStatistic.countByQuery", query);
    }

    public int deleteByQuery(BaseQuery query) {
        return deleteByQuery("ClassStatistic.deleteByQuery", query);
    }

}
